using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[ExecuteInEditMode]
public class LookAt : MonoBehaviour
{
    private void OnValidate()
    {
        transform.rotation = Quaternion.LookRotation(0.5f * Vector3.one-transform.position.normalized);
    }
}
